package com.itheima;

import java.util.ArrayList;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        domin domin = new domin();
        lo:  while (true) {
        System.out.println("-------------欢迎来到黑马管理系统------------");
        System.out.println("1,添加学生      2.查看学生      3. 修改学生    4. 删除学生    5. 退出");
        System.out.println("请输入您的选择");

        String s = scanner.nextLine();

            switch (s) {
                case "1":
                    domin.addStudent();
                    break;
                case "2":
                    domin.fAndStudent();
                    break;
                case "3":
                    domin.chakanStudent();
                    break;
                case "4":
                    domin.deleteStudent();
                    break;
                case "5":
                    break lo;
                default:
                    System.out.println("您输入的有误");
            }
        }
    }
}